package xps.and.uudaijia.userclient.view.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;

import java.util.ArrayList;

import xps.and.uudaijia.userclient.adapter.OrderAdapterDaijia;
import xps.and.uudaijia.userclient.adapter.OrderAdapterPinche;
import xps.and.uudaijia.userclient.data.entity.FakeEntity;
import xps.and.uudaijia.userclient.view.base.BaseSwipeRefreshFragment;

public class OrderPincheFragment extends BaseSwipeRefreshFragment {
    
    ArrayList<FakeEntity> fackEntities;

    @Override
    protected void getData(int pageIndex) {

    }

    @Override
    public void onRefresh() {
        super.onRefresh();
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        abstractRecyclerAdapter = new OrderAdapterPinche(activity, recyclerView);
        abstractRecyclerAdapter.setAutoLoadMoreEnable(true);
        setRefreshEnable(true);
        super.onActivityCreated(savedInstanceState);

        fackEntities = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            fackEntities.add(new FakeEntity("corepass" + i, "tianjinwan" + i));
        }
        adapterListData = fackEntities;
        onResponce();
    }


}
